//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopDecorate, MinishopDecorateResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopDecorateList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopDecorateResponse>(`/uctoo/minishop_decorate/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopDecorate = async (id: string) => {
  return requestClient.get<MinishopDecorate>(`/uctoo/minishop_decorate/${id}`);
};

export const adductooMinishopDecorate = async (data: Partial<MinishopDecorate>) => {
  return requestClient.post<MinishopDecorate>('/uctoo/minishop_decorate/add', data);
};

export const edituctooMinishopDecorate = async (data: Partial<MinishopDecorate>) => {
  return requestClient.post<MinishopDecorate>('/uctoo/minishop_decorate/edit', data);
};

export const deleteuctooMinishopDecorate = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_decorate/del', { id });
};
